package com.hc.query;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 六月Bing
 * @date 2021/12/7 15:10
 * 商品表（SPU）
 */
@Getter
@Setter
@ToString
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_product")
public class ProductCondition extends PageParam {
    /**
     * 商品编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="商品编号")
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value="商品名称")
    private String name;

    /**
     * 商品属性列表
     */
    @TableField(value = "attribute_list")
    @ApiModelProperty(value="商品属性列表")
    private String attributeList;

    /**
     * 类别编号
     */
    @TableField(value = "category_id")
    @ApiModelProperty(value="类别编号")
    private Integer categoryId;

    /**
     * 品牌编号
     */
    @TableField(value = "brand_id")
    @ApiModelProperty(value="品牌编号")
    private Integer brandId;

    /**
     * 状态 1上架  2下架
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态 1上架  2下架")
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "info")
    @ApiModelProperty(value="备注")
    private String info;

    /**
     *  创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value=" 创建时间")
    private LocalDateTime createTime;



}